﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="head.ascx.cs" Inherits="ECommerce.Web.Site.controls.head" %>
<script type="text/javascript">
    function flash()
    {
        var old = $(".tz").css("background-image");

        window.setInterval(function ()
        {
            var tmp = $(".tz").css("background-image") + "";
            if (tmp.indexOf("icon3") > -1)
            {
                $(".tz").css("background-image", old.replace("icon3", "none"));
            }
            else
            {
                $(".tz").css("background-image", old)
            }
        }, 500);
    }

    function key_up()
    {
        //        alert("ok");
        if (event.keyCode == 13)
        {
            document.getElementById("<%=btnSearch.ClientID %>").focus();
        }
        
    }
</script>
<div id="head">
       <div class="topbar">
         <div class="topbar_con">
          <div class="left" style="margin-left:10px;">
              <asp:Literal ID="litWebcome" runat="server"></asp:Literal>
              <asp:LinkButton ID="lnkLogout" runat="server" onclick="lnkLogout_Click" CausesValidation="false">[退出]</asp:LinkButton><asp:HyperLink ID="lnkLogin" runat="server">[请登录]</asp:HyperLink><asp:HyperLink
              ID="lnkRegister" runat="server">[免费注册]</asp:HyperLink>
              
              <asp:Image ID="imgVip" Visible="false" runat="server" ImageUrl="~/Site/images/4.jpg" /></div>
          <div class="right">
              <asp:HyperLink ID="lnkMemberCenter" runat="server">会员中心</asp:HyperLink><asp:HyperLink ID="lnkMyOrder" runat="server">我的订单</asp:HyperLink><asp:HyperLink ID="lnkJifen" runat="server">积分</asp:HyperLink><a href="javascript://" id="lnkNotice" runat="server" class="tz">通知</a><a href="javascript://" class="bz">帮助中心</a></div>
          <div class="clear"></div>
         </div>
       </div>
       <div class="nav">
            <div class="navsum">
            <div class="box">
            <div class="nlogo"><asp:Image ID="Image1" runat="server" ImageUrl="~/site/images/dlogo.jpg" />
            </div>
            <div class="nav_list">
                <a href="/Default.aspx" class="sy" id="menu1" runat="server">首页</a><a id="menu2" runat="server" href="Twopage.htm">蛋 糕</a> <a href="javascript://">订货流程</a>
            </div>
            <div class="navbar">   
                
                <asp:TextBox ID="txtProductName"  onkeydown="key_up()" runat="server" CssClass="text"></asp:TextBox><asp:Button ID="btnSearch2" 
                    runat="server" CssClass="but" onclick="btnSearch_Click" /><asp:Button
                    ID="btnSearch" runat="server" Text="搜索" CssClass="button" 
                    onclick="btnSearch_Click" />热门搜索： 
                <asp:Literal ID="litHotSearch" runat="server"></asp:Literal> <a id="lnkCart" runat="server" href="javascript://"
                    class="gcar">购物车 
                    <asp:Label ID="lblCount" runat="server" Text="Label"></asp:Label>件</a>
            </div>
            </div>
            </div>
        </div>
    </div>
    